package org.lboot.flow.module.assign;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.support.JpaRepositoryImplementation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface FlowTaskAssignDAO extends JpaRepositoryImplementation<FlowTaskAssign,String > {
    List<FlowTaskAssign> findByFlowCodeAndFlowNodeId(String flowCode, String flowNodeId);

    @Transactional
    @Modifying
    List<FlowTaskAssign> deleteByFlowCode(String code);

    List<FlowTaskAssign> findByFlowCode(String code);
}
